

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="python" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="python" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>QUANTAXIS.QAAnalysis package &mdash; QUANTAXIS 1.0.39 documentation</title>
  

  
  
  
  

  

  
  
    

  

  
    <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" /> 

  
  <script src="../_static/js/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search">
          

          
            <a href="../index.html" class="icon icon-home"> QUANTAXIS
          

          
          </a>

          
            
            
              <div class="version">
                1.0.39
              </div>
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <!-- Local TOC -->
              <div class="local-toc"><ul>
<li><a class="reference internal" href="#">QUANTAXIS.QAAnalysis package</a><ul>
<li><a class="reference internal" href="#submodules">Submodules</a></li>
<li><a class="reference internal" href="#module-QUANTAXIS.QAAnalysis.QAAnalysis_block">QUANTAXIS.QAAnalysis.QAAnalysis_block module</a></li>
<li><a class="reference internal" href="#module-QUANTAXIS.QAAnalysis.QAAnalysis_dataframe">QUANTAXIS.QAAnalysis.QAAnalysis_dataframe module</a></li>
<li><a class="reference internal" href="#module-QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning">QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning module</a></li>
<li><a class="reference internal" href="#module-QUANTAXIS.QAAnalysis.QAAnalysis_series">QUANTAXIS.QAAnalysis.QAAnalysis_series module</a></li>
<li><a class="reference internal" href="#module-QUANTAXIS.QAAnalysis.QAAnalysis_tick">QUANTAXIS.QAAnalysis.QAAnalysis_tick module</a></li>
<li><a class="reference internal" href="#module-QUANTAXIS.QAAnalysis.QAAnalysis_trade">QUANTAXIS.QAAnalysis.QAAnalysis_trade module</a></li>
<li><a class="reference internal" href="#module-QUANTAXIS.QAAnalysis">Module contents</a></li>
</ul>
</li>
</ul>
</div>
            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../index.html">QUANTAXIS</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../index.html">Docs</a> &raquo;</li>
        
      <li>QUANTAXIS.QAAnalysis package</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            <a href="../_sources/source/QUANTAXIS.QAAnalysis.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="quantaxis-qaanalysis-package">
<h1>QUANTAXIS.QAAnalysis package<a class="headerlink" href="#quantaxis-qaanalysis-package" title="Permalink to this headline">¶</a></h1>
<div class="section" id="submodules">
<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
</div>
<div class="section" id="module-QUANTAXIS.QAAnalysis.QAAnalysis_block">
<span id="quantaxis-qaanalysis-qaanalysis-block-module"></span><h2>QUANTAXIS.QAAnalysis.QAAnalysis_block module<a class="headerlink" href="#module-QUANTAXIS.QAAnalysis.QAAnalysis_block" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block">
<em class="property">class </em><code class="descclassname">QUANTAXIS.QAAnalysis.QAAnalysis_block.</code><code class="descname">QAAnalysis_block</code><span class="sig-paren">(</span><em>block=None</em>, <em>block_name=None</em>, <em>lens=90</em>, <em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_block.html#QAAnalysis_block"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.block_pcg">
<code class="descname">block_pcg</code><span class="sig-paren">(</span><em>market_data=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_block.html#QAAnalysis_block.block_pcg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.block_pcg" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.block_price">
<code class="descname">block_price</code><span class="sig-paren">(</span><em>market_data=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_block.html#QAAnalysis_block.block_price"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.block_price" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.block_turnover">
<code class="descname">block_turnover</code><span class="sig-paren">(</span><em>market_data=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_block.html#QAAnalysis_block.block_turnover"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.block_turnover" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.market_data">
<code class="descname">market_data</code><span class="sig-paren">(</span><em>start</em>, <em>end</em>, <em>_type='day'</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_block.html#QAAnalysis_block.market_data"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.market_data" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.month_data">
<code class="descname">month_data</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.month_data" title="Permalink to this definition">¶</a></dt>
<dd><p>this monthly data</p>
</dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.res">
<code class="descname">res</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_block.html#QAAnalysis_block.res"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.res" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.stock_info">
<code class="descname">stock_info</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_block.html#QAAnalysis_block.stock_info"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.stock_info" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.stock_turnover">
<code class="descname">stock_turnover</code><span class="sig-paren">(</span><em>market_data=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_block.html#QAAnalysis_block.stock_turnover"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.stock_turnover" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.week_data">
<code class="descname">week_data</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.week_data" title="Permalink to this definition">¶</a></dt>
<dd><p>this weekly data</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_codewithblock">
<em class="property">class </em><code class="descclassname">QUANTAXIS.QAAnalysis.QAAnalysis_block.</code><code class="descname">QAAnalysis_codewithblock</code><span class="sig-paren">(</span><em>block</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_block.html#QAAnalysis_codewithblock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_codewithblock" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
</dd></dl>

<dl class="function">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_block.get_gap_trade">
<code class="descclassname">QUANTAXIS.QAAnalysis.QAAnalysis_block.</code><code class="descname">get_gap_trade</code><span class="sig-paren">(</span><em>gap</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_block.html#get_gap_trade"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_block.get_gap_trade" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</div>
<div class="section" id="module-QUANTAXIS.QAAnalysis.QAAnalysis_dataframe">
<span id="quantaxis-qaanalysis-qaanalysis-dataframe-module"></span><h2>QUANTAXIS.QAAnalysis.QAAnalysis_dataframe module<a class="headerlink" href="#module-QUANTAXIS.QAAnalysis.QAAnalysis_dataframe" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock">
<em class="property">class </em><code class="descclassname">QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.</code><code class="descname">QAAnalysis_stock</code><span class="sig-paren">(</span><em>dataStruct</em>, <em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_dataframe.html#QAAnalysis_stock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<p>行情分析器</p>
<p>计算所有的指标</p>
<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.add_func">
<code class="descname">add_func</code><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_dataframe.html#QAAnalysis_stock.add_func"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.add_func" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.amplitude">
<code class="descname">amplitude</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.amplitude" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.close">
<code class="descname">close</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.close" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.date">
<code class="descname">date</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.date" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.datetime">
<code class="descname">datetime</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.datetime" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.day_pct_change">
<code class="descname">day_pct_change</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.day_pct_change" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.high">
<code class="descname">high</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.high" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.index">
<code class="descname">index</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.index" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.kurtosis">
<code class="descname">kurtosis</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.kurtosis" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.low">
<code class="descname">low</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.low" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.mad">
<code class="descname">mad</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.mad" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.max">
<code class="descname">max</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.max" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.mean">
<code class="descname">mean</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.mean" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.mean_harmonic">
<code class="descname">mean_harmonic</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.mean_harmonic" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.min">
<code class="descname">min</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.min" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.mode">
<code class="descname">mode</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.mode" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.open">
<code class="descname">open</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.open" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.pct_change">
<code class="descname">pct_change</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.pct_change" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.price">
<code class="descname">price</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.price" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.price_diff">
<code class="descname">price_diff</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.price_diff" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.pstdev">
<code class="descname">pstdev</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.pstdev" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.pvariance">
<code class="descname">pvariance</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.pvariance" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.skewnewss">
<code class="descname">skewnewss</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.skewnewss" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.stdev">
<code class="descname">stdev</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.stdev" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.variance">
<code class="descname">variance</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.variance" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.vol">
<code class="descname">vol</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.vol" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.volume">
<code class="descname">volume</code><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.QAAnalysis_stock.volume" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="class">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.shadow">
<em class="property">class </em><code class="descclassname">QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.</code><code class="descname">shadow</code><span class="sig-paren">(</span><em>data</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_dataframe.html#shadow"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.shadow" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.shadow.shadow_panel">
<code class="descname">shadow_panel</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_dataframe.html#shadow.shadow_panel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.shadow.shadow_panel" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="function">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.shadow_calc">
<code class="descclassname">QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.</code><code class="descname">shadow_calc</code><span class="sig-paren">(</span><em>data</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_dataframe.html#shadow_calc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_dataframe.shadow_calc" title="Permalink to this definition">¶</a></dt>
<dd><p>计算上下影线</p>
<dl class="docutils">
<dt>Arguments:</dt>
<dd>data {DataStruct.slice} -- 输入的是一个行情切片</dd>
<dt>Returns:</dt>
<dd>up_shadow {float} -- 上影线
down_shdow {float} -- 下影线
entity {float} -- 实体部分
date {str} -- 时间
code {str} -- 代码</dd>
</dl>
</dd></dl>

</div>
<div class="section" id="module-QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning">
<span id="quantaxis-qaanalysis-qaanalysis-machinelearning-module"></span><h2>QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning module<a class="headerlink" href="#module-QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning" title="Permalink to this headline">¶</a></h2>
<p>一个通用的可以接入不同模型的类</p>
<dl class="class">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.QAAnalysis_Machine_Learning">
<em class="property">class </em><code class="descclassname">QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.</code><code class="descname">QAAnalysis_Machine_Learning</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_machinelearning.html#QAAnalysis_Machine_Learning"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.QAAnalysis_Machine_Learning" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.QAAnalysis_Machine_Learning.cross_valid">
<code class="descname">cross_valid</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_machinelearning.html#QAAnalysis_Machine_Learning.cross_valid"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.QAAnalysis_Machine_Learning.cross_valid" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.QAAnalysis_Machine_Learning.data_co">
<code class="descname">data_co</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_machinelearning.html#QAAnalysis_Machine_Learning.data_co"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.QAAnalysis_Machine_Learning.data_co" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.QAAnalysis_Machine_Learning.load_data">
<code class="descname">load_data</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_machinelearning.html#QAAnalysis_Machine_Learning.load_data"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.QAAnalysis_Machine_Learning.load_data" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.QAAnalysis_Machine_Learning.load_modules">
<code class="descname">load_modules</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_machinelearning.html#QAAnalysis_Machine_Learning.load_modules"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.QAAnalysis_Machine_Learning.load_modules" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.QAAnalysis_Machine_Learning.training">
<code class="descname">training</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_machinelearning.html#QAAnalysis_Machine_Learning.training"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_machinelearning.QAAnalysis_Machine_Learning.training" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

</div>
<div class="section" id="module-QUANTAXIS.QAAnalysis.QAAnalysis_series">
<span id="quantaxis-qaanalysis-qaanalysis-series-module"></span><h2>QUANTAXIS.QAAnalysis.QAAnalysis_series module<a class="headerlink" href="#module-QUANTAXIS.QAAnalysis.QAAnalysis_series" title="Permalink to this headline">¶</a></h2>
<dl class="function">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_series.QAAnalysis_Series_slope">
<code class="descclassname">QUANTAXIS.QAAnalysis.QAAnalysis_series.</code><code class="descname">QAAnalysis_Series_slope</code><span class="sig-paren">(</span><em>data</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_series.html#QAAnalysis_Series_slope"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_series.QAAnalysis_Series_slope" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</div>
<div class="section" id="module-QUANTAXIS.QAAnalysis.QAAnalysis_tick">
<span id="quantaxis-qaanalysis-qaanalysis-tick-module"></span><h2>QUANTAXIS.QAAnalysis.QAAnalysis_tick module<a class="headerlink" href="#module-QUANTAXIS.QAAnalysis.QAAnalysis_tick" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_tick.QAAnalysis_Transaction">
<em class="property">class </em><code class="descclassname">QUANTAXIS.QAAnalysis.QAAnalysis_tick.</code><code class="descname">QAAnalysis_Transaction</code><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_tick.html#QAAnalysis_Transaction"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_tick.QAAnalysis_Transaction" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_tick.QAAnalysis_Transaction.get_data">
<code class="descname">get_data</code><span class="sig-paren">(</span><em>code</em>, <em>start</em>, <em>end</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_tick.html#QAAnalysis_Transaction.get_data"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_tick.QAAnalysis_Transaction.get_data" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_tick.QAAnalysis_Transaction.get_stock_info">
<code class="descname">get_stock_info</code><span class="sig-paren">(</span><em>code</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_tick.html#QAAnalysis_Transaction.get_stock_info"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_tick.QAAnalysis_Transaction.get_stock_info" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_tick.QAAnalysis_Transaction.winner">
<code class="descname">winner</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_tick.html#QAAnalysis_Transaction.winner"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_tick.QAAnalysis_Transaction.winner" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

</div>
<div class="section" id="module-QUANTAXIS.QAAnalysis.QAAnalysis_trade">
<span id="quantaxis-qaanalysis-qaanalysis-trade-module"></span><h2>QUANTAXIS.QAAnalysis.QAAnalysis_trade module<a class="headerlink" href="#module-QUANTAXIS.QAAnalysis.QAAnalysis_trade" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_trade.QAAnalysis_trade">
<em class="property">class </em><code class="descclassname">QUANTAXIS.QAAnalysis.QAAnalysis_trade.</code><code class="descname">QAAnalysis_trade</code><span class="sig-paren">(</span><em>init_cash</em>, <em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_trade.html#QAAnalysis_trade"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_trade.QAAnalysis_trade" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<p>Account/Portfolio是一个标准单元,所有成交记录分析 都会被加载到该单元中进行分析
当我们只有一个成交记录的时候,我们会创建一个账户单元</p>
<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_trade.QAAnalysis_trade.import_trade">
<code class="descname">import_trade</code><span class="sig-paren">(</span><em>trade</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_trade.html#QAAnalysis_trade.import_trade"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_trade.QAAnalysis_trade.import_trade" title="Permalink to this definition">¶</a></dt>
<dd><p>trade是一个可迭代的list/generator</p>
</dd></dl>

<dl class="method">
<dt id="QUANTAXIS.QAAnalysis.QAAnalysis_trade.QAAnalysis_trade.make_deal">
<code class="descname">make_deal</code><span class="sig-paren">(</span><em>code</em>, <em>datetime</em>, <em>amount=100</em>, <em>towards=1</em>, <em>price=0</em>, <em>order_model='market'</em>, <em>amount_model='by_amount'</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/QUANTAXIS/QAAnalysis/QAAnalysis_trade.html#QAAnalysis_trade.make_deal"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#QUANTAXIS.QAAnalysis.QAAnalysis_trade.QAAnalysis_trade.make_deal" title="Permalink to this definition">¶</a></dt>
<dd><p>这是一个一定会成交,并且立刻结转(及t+0)的交易入口</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-QUANTAXIS.QAAnalysis">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-QUANTAXIS.QAAnalysis" title="Permalink to this headline">¶</a></h2>
</div>
</div>


           </div>
           
          </div>
          <footer>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2018, yutiansut.

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  

    <script type="text/javascript">
        var DOCUMENTATION_OPTIONS = {
            URL_ROOT:'../',
            VERSION:'1.0.39',
            LANGUAGE:'python',
            COLLAPSE_INDEX:false,
            FILE_SUFFIX:'.html',
            HAS_SOURCE:  true,
            SOURCELINK_SUFFIX: '.txt'
        };
    </script>
      <script type="text/javascript" src="../_static/jquery.js"></script>
      <script type="text/javascript" src="../_static/underscore.js"></script>
      <script type="text/javascript" src="../_static/doctools.js"></script>
      <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

  

  
  
    <script type="text/javascript" src="../_static/js/theme.js"></script>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

</body>
</html>